import request from '@/utils/request'
import Cookies from "js-cookie";
import { getToken } from "@/utils/auth";

export function queryApBaseByMainId(id) {
    const data = {
        id
    }
    return request({
        url: '/jeecg-boot/agr/agrProjects/queryApBaseByMainId?id=' + id + '&time='+ Math.random()*100,
        headers: {
            isToken: true,
            'X-Access-Token' : getToken()
        },
        method: 'get',
        // data:data
    })
}

export function queryApBaseShpByMainId(id) {
    console.log(getToken())
    return request({
        url: '/jeecg-boot/agr/agrProjects/queryApShpLayersByMainId?id=' + id + '&time=',
        headers: {
            isToken: true,
            'X-Access-Token' : getToken()
        },
        method: 'get',
    })
}


